#define  _CRT_SECURE_NO_WARNINGS 1

#include "SeqList.h"

void TestSeqList() {
	SL s;
	SeqInit(&s);

	SLPushBack(&s, 1);
	SLPushBack(&s, 2);
	SLPushBack(&s, 3);
	SLPushBack(&s, 4);
	SLPushBack(&s, 5);

	SLPopBack(&s);
	SLPopBack(&s);

	SLPushfront(&s, -1);
	SLPushfront(&s, -2);
	SLPushfront(&s, -3);

	SLPopfront(&s);
	SLPopfront(&s);

	SLInsert(&s, 0, 100);
	SLInsert(&s, 0, 100);

	SLErase(&s, 0);

	int res=SLFind(&s, -1);

	print(&s);
	printf("%d", res);

	SeqDestory(&s);
}

int main() {
	
	TestSeqList();

	return 0;
}